package com.example.demo.dao;

import com.example.demo.entity.LeaseTimeEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface LeasetimeDao {

    /**
     * 通过ID查询单条数据
     */
    public LeaseTimeEntity queryLeasetimeById(Integer ltid);


    /**
     * 通过实体作为筛选条件查询
     */
    public List<LeaseTimeEntity> queryLeasetimeAll();

    /**
     * 新增数据
     */
    public int insertLeasetime(LeaseTimeEntity leasetime);

    /**
     * 修改数据
     */
    public int updateLeasetime(LeaseTimeEntity leasetime);

    /**
     * 通过主键删除数据
     */
    public int deleteByIdLeasetime(Integer ltid);

}